package com.winit.schedule.job.tracker.repository.mysql.dao;

import com.winit.schedule.core.repository.entity.UserEntity;
import com.winit.schedule.core.repository.query.LogQuery;
import com.winit.schedule.core.repository.query.UserQuery;
import com.winit.schedule.job.tracker.repository.mysql.plugin.SearchRequest;

import java.util.List;

/**
 * Created by jianke.zhang on 2017/5/2.
 */
public interface MysqlUserDao {
    void saveUser(UserEntity user);

    void updatePwd(UserEntity user);

    void updateUser(UserEntity user);

    UserEntity findByUsername(String username);

    UserEntity findByUsernameAndPwd(UserEntity user);

    List<UserEntity> queryUserPage(SearchRequest<UserQuery> search);

    long queryUserPageCount(UserQuery query);
}
